package start.spring.basic.demo.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 测试
 *
 * @author xyy
 * @since 2021-06-24
 */
@Data
@TableName("test")
@ApiModel(value="Test对象", description="测试")
public class Test implements Serializable {
	
	private static final long serialVersionUID = -7184461137540317907L;

	@TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("a")
    private String a;

    @TableField("b")
    private String b;

	@Override
	public String toString() {
		return "Test [id=" + id + ", a=" + a + ", b=" + b + "]";
	}
}
